from tortoise import BaseDBAsyncClient


async def upgrade(db: BaseDBAsyncClient) -> str:
    return """
        ALTER TABLE "tb_system_global_config" ADD "github_url" VARCHAR(255);
        ALTER TABLE "tb_system_global_config" ADD "email" VARCHAR(255);"""


async def downgrade(db: BaseDBAsyncClient) -> str:
    return """
        ALTER TABLE "tb_system_global_config" DROP COLUMN "github_url";
        ALTER TABLE "tb_system_global_config" DROP COLUMN "email";"""
